package units;

import game.Costs;
import game.Technology;

public class Tower extends AbstractUnit {
	//*******************************************
	private static final int _healthpoints = 500;
	private static final int _attackMultiple = 5;
	private static final int _attack = 10;
	private static final int _defense = 20;
	private static final int _attackquality = 35;
	private static final int[] _attackRounds = {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
	private static Costs costSetting = null;	
	private static final int _buildPoints = 400;	
	//*******************************************

	Tower() {
		super(_healthpoints, _attack, _defense, _attackquality, _attackMultiple, _attackRounds, _buildPoints);
		if (costSetting == null){
			costSetting = new Costs();
			costSetting.setStoneCost(500);
			costSetting.setGoldCost(0);
			}
		this.setCosts(costSetting);
	}

	@Override
	int getAttackBonus() {
		return Technology.getArcherAttackBonus();
	}

	@Override
	int getDefenseBonus() {
		return Technology.getArcherDefenseBonus();
	}

	@Override
	int getAttackqualityBonus() {
		return Technology.getArcherAttackqualityBonus();
	}

	@Override
	int getHealthpointsBonus() {
		return Technology.getArcherHealthpointsBonus();
	}
}
